<%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="utf-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
<!doctype html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge,chrome=1">
    <title>隐患登记</title>
    <%@include file="/common/header.jspf"%>
    <link href="${ctx}/resources/themes/style/style.css" rel="stylesheet" type="text/css">
    <script type="text/javascript" src="${ctx}/resources/js/hiddenDanger/hdAccept/list.js"></script>

</head>
<body>
<div class="easyui-layout" data-options="fit:true">
    <%--<div data-options="region:'west',title:'West',split:true" style="width:25%;padding: 10px"></div>--%>
    <div data-options="region:'center',border:true">
        <div id="toolbar" >
            <form id="searchForm1" style="padding: 0 5px 5px;">
                <div style="display: inline">
                隐患名称: <input type="text" class="easyui-textbox" name="name" style="width:200px;"/>
                </div>
                <div  style="display: inline;margin-left: 10px;">
                所在部门: <input type="text" id="searchDept" name="deptId" style="width:200px;"/>
                </div>
                <a id="btn_advanced_search" href="javascript:void(0)" class="advanced-search"></a>
                <a id="btn_search" href="javascript:void(0)" class="easyui-linkbutton" iconCls="fa fa-search fa-lg">查询</a>
                <a id="btn_clear" href="javascript:void(0)" class="easyui-linkbutton" iconCls="fa fa-remove fa-lg">清空</a>
                <%@include file="/common/button.jspf" %>
            </form>
            <form id="searchForm2" style="padding: 5px;display: none;">
                <fieldset class="advanced" style="border: 1px solid #B5B5B5;">
                    <legend>高级查询</legend>
                    <div class="list">
                        <label>隐患描述：</label>
                        <input type="text" class="easyui-textbox" name="description" style="width:200px;"/>
                    </div>
                    <div class="list">
                        <label>负责人：</label>
                        <input type="text" class="easyui-textbox" id="searchChargeUser" name="chargeUserId" editable="false" style="width:200px;"/>
                    </div>
                    <div class="list">
                        &nbsp;<label>隐患等级：</label>
                        <input type="text" class="easyui-combobox" id="searchGrade" name="gradeId" editable="false" style="width:200px;"/>
                    </div>
                    <div class="list">
                        <label>登记部门：</label>
                        <input type="text" class="easyui-combobox" id="searchAddDept" name="addDeptId" editable="false" style="width:200px;"/>
                    </div>
                    <div class="list">
                        <label>登记人：</label>
                        <input type="text" class="easyui-textbox" id="searchAddUser" name="addUserId" editable="false" style="width:200px;"/>
                    </div>
                    <div class="list" style="clear: both;margin-top: 10px;">
                        <label>登记时间：</label>
                        <input type="text" class="easyui-datebox" name="addTimeMin" editable="false" style="width:200px;"/><span style="margin-left: 21px;margin-right: 21px;">——</span>
                        <input type="text" class="easyui-datebox" name="addTimeMax" editable="false" style="width:200px;"/>
                    </div>

                </fieldset>
            </form>
        </div>
        <table id="hdList" class="easyui-datagrid" data-options="rownumbers:true,singleSelect:false,fitColumns:true,method:'get',pagination:true,pageSize:10,fit:true,toolbar:'#toolbar'">

        </table>


    </div>
</div>
<script>

    /*function doSearch(value, name) {
        alert('You input: ' + value + '(' + name + ')');
    }
    function toggleSearch() {
        $('#tb2').toggle();
        $('#dg1').datagrid('resize');
    }
    $(function () {
        var grid_data = {
            "total": 28,
            "rows": [
                {
                    "productid": "FI-SW-01",
                    "productname": "Koi",
                    "unitcost": 10,
                    "status": "P",
                    "listprice": 36.5,
                    "attr1": "Large",
                    "itemid": "EST-1"
                },
                {
                    "productid": "K9-DL-01",
                    "productname": "Dalmation",
                    "unitcost": 12,
                    "status": "P",
                    "listprice": 18.5,
                    "attr1": "Spotted Adult Female",
                    "itemid": "EST-10"
                },
                {
                    "productid": "RP-SN-01",
                    "productname": "Rattlesnake",
                    "unitcost": 12,
                    "status": "P",
                    "listprice": 38.5,
                    "attr1": "Venomless",
                    "itemid": "EST-11"
                },
                {
                    "productid": "RP-SN-01",
                    "productname": "Rattlesnake",
                    "unitcost": 12,
                    "status": "P",
                    "listprice": 26.5,
                    "attr1": "Rattleless",
                    "itemid": "EST-12"
                },
                {
                    "productid": "RP-LI-02",
                    "productname": "Iguana",
                    "unitcost": 12,
                    "status": "P",
                    "listprice": 35.5,
                    "attr1": "Green Adult",
                    "itemid": "EST-13"
                },
                {
                    "productid": "FL-DSH-01",
                    "productname": "Manx",
                    "unitcost": 12,
                    "status": "P",
                    "listprice": 158.5,
                    "attr1": "Tailless",
                    "itemid": "EST-14"
                },
                {
                    "productid": "FL-DSH-01",
                    "productname": "Manx",
                    "unitcost": 12,
                    "status": "P",
                    "listprice": 83.5,
                    "attr1": "With tail",
                    "itemid": "EST-15"
                },
                {
                    "productid": "FL-DLH-02",
                    "productname": "Persian",
                    "unitcost": 12,
                    "status": "P",
                    "listprice": 23.5,
                    "attr1": "Adult Female",
                    "itemid": "EST-16"
                },
                {
                    "productid": "FL-DLH-02",
                    "productname": "Persian",
                    "unitcost": 12,
                    "status": "P",
                    "listprice": 89.5,
                    "attr1": "Adult Male",
                    "itemid": "EST-17"
                },
                {
                    "productid": "AV-CB-01",
                    "productname": "Amazon Parrot",
                    "unitcost": 92,
                    "status": "P",
                    "listprice": 63.5,
                    "attr1": "Adult Male",
                    "itemid": "EST-18"
                }
            ]
        };

        $('#dg1').datagrid({
            data: grid_data
        });

    });*/

</script>

</body>
</html>
